package jsyf.oa.facade.report.attendance;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * Created by Administrator on 2018/4/7 0007.
 */
@Path("/attendanceService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface AttendanceFacade {
    @Path("getSignPersonByToday")
    JSONObject getSignPersonByToday(String jsonData);
    @Path("getForPersonalByUserIdAndDateTime")
    List<JSONObject> getForPersonalByUserIdAndDateTime(String jsonData);
    @Path("getSignInByUserId")
    JSONObject getSignInByUserId(String jsonData);
    @Path("getSignInByRegionUserId")
    JSONObject getSignInByRegionUserId(String jsonData);
    @Path("getForDepartByUserIdAndDateTime")
    List<JSONObject> getForDepartByUserIdAndDateTime(String jsonData);
    @Path("getForCompanyByUserIdAndDateTime")
    List<JSONObject> getForCompanyByUserIdAndDateTime(String jsonData);
    @Path("getForGroupByUserIdAndDateTime")
    List<JSONObject> getForGroupByUserIdAndDateTime(String jsonData);
    @Path("getForSignInByTypeAndDateTime")
    List<JSONObject>getForSignInByTypeAndDateTime(String jsonData);
    @Path("getShouldExcel")
    List<JSONObject> getShouldExcel(String dateTime,String companyId);
    @Path("getWrtReportExcel")
    List<JSONObject> getWrtReportExcel(String userId,String dateTime);
    @Path("getShouldByUserIdAndDateTime")
    List<JSONObject> getShouldByUserIdAndDateTime(String userId,String dateTime);
    @Path("getBackGround")
    String getBackGround(String dateTime);
    @Path("getForManagerInByTypeAndMonthTime")
    List<JSONObject>getForManagerInByTypeAndMonthTime(String jsonData);

    @Path("getRealRest")
    Integer getRealRest(String dateTime,String userId);
    @Path("getLeaveRest")
    Integer getLeaveRest(String dateTime,String userId,String frontFlag);
    @Path("getSignRest")
    Integer getSignRest(String dateTime,String userId,String frontFlag);
    @Path("getOverTime")
    Integer getOverTime(String dateTime,String userId,String frontFlag);


}
